[flask]trow Away Js Function And Use A Python Function

[flask]trow Away Js Function And Use A Python Function